<?php
namespace app\common\model;

use think\Model;

class Category extends Model
{
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = true;
    // 定义时间戳字段名
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';



    public function getTemplateListAttr($value)
    {
        return $value.'.html';
    }

	public function setTemplateListAttr($value, $data)
    {
        return str_replace('.html','',$value);
    }


    public function getTemplateShowAttr($value)
    {
        return $value.'.html';
    }

	public function setTemplateShowAttr($value, $data)
    {
        return str_replace('.html','',$value);
    }

}